package com.example.administrator.homeworkintent;

import android.app.Activity;
import android.media.Image;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.content.Intent;

public class MainActivity extends Activity {
    private ImageView imaglogo;
    private MainClickListener listener=new MainClickListener();
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        imaglogo = (ImageView) findViewById(R.id.wuyelogo);
        imaglogo.setOnClickListener(listener);
    }
    class MainClickListener implements OnClickListener{
        @Override
        public void onClick(View v) {
            Intent intentlogo=new Intent(MainActivity.this,SongsKeep.class);
            startActivity(intentlogo);
        }
    }
}